import bpy



class C_Engine_从引擎删除物体(bpy.types.Operator):
	bl_idname = 'node.engine_delete_object'
	bl_label = '删除'
	bl_options = {'REGISTER', 'UNDO'}
	
	def execute(operator, context):
		layout.operator("object.delete", text="Delete").use_global = False
		layout.operator("object.delete", text="Delete Global").use_global = True
		return {'FINISHED'}










#layout.operator_menu_enum("object.empty_add", "type", text="Empty", icon='OUTLINER_OB_EMPTY')




classes = (
	C_Engine_从引擎删除物体,

)


def register():
	bpy.types.Object.m_物体ID = bpy.props.IntProperty(name='物体ID', min=-1, default=-1, update=f_update_n1)
	
	for c in classes:
		bpy.utils.register_class(c)
		
def unregister():

	for c in classes:
		bpy.utils.unregister_class(c)

	



